package com.sfac.account.vo;

import com.sfac.account.entity.Role;
import com.sfac.common.entity.AbstractEntity;
import com.sfac.test.entity.City;

import javax.persistence.Column;
import javax.persistence.Transient;
import java.util.List;

/**
 * @author zjm
 * @date 2022/9/3 15:28
 */
// AbstractEntity 创建表的时候用的类，需要被继承
public class UserVo extends AbstractEntity {

    private static final long serialVersionUID = 1L;
    private String userName;
    private String email;
    private String password;
    private String userImage;
    private boolean rememberMe;
    private List<Role> roles;

    private City city;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserImage() {
        return userImage;
    }

    public void setUserImage(String userImage) {
        this.userImage = userImage;
    }

    public boolean isRememberMe() {
        return rememberMe;
    }

    public void setRememberMe(boolean rememberMe) {
        this.rememberMe = rememberMe;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }
}
